package com.choker.mall.controller;

import com.choker.mall.entity.ClassEntity;
import com.choker.mall.service.ClassService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Lychee on 2018/3/8 09:32.
 * <p>
 * Author:Hejingzhou
 * <p>
 * Email:tcowork@163.com
 */
@RequestMapping(value = "/class")
@Controller
public class ClassController {

    @Resource
    private ClassService classService;


    @RequestMapping(value = "/showAllSchoolmate", method = RequestMethod.GET)
    public void allSchoolmate() {
        List<ClassEntity> classEntities = classService.allSchoolmateShow();
        for (ClassEntity classEntity : classEntities) {
            System.out.println(classEntity.toString());
        }
    }
}
